package DARCOShared.responses;

public class LoginResponse implements ResponseBase, java.io.Serializable {
	private static final long serialVersionUID = 1L;
	
	public boolean error;
	public String errorMessage;
	
	public Integer id;
	public String email;
	public String name;
	public String surname;
	public String username;
	public String password;
	public String lastLocation;
	public String creation;
	public byte[] keyPair;
	public byte[] avatar;
	
	public LoginResponse(String errorMessage){
		error = true;
		this.errorMessage = errorMessage;
	}
	
	public LoginResponse(Integer id,String email, String name, String surname, String username,
							String password,String lastLoc, String creation, byte[] keyPair, byte[] avatar){
		this.id=id;
		this.email = email;
		this.name = name;
		this.surname = surname;
		this.username = username;
		this.password = password;
		this.lastLocation= lastLoc;
		this.creation = creation;
		this.keyPair = keyPair;
		this.avatar = avatar;
		
		error = false;
	}
	
	@Override
	public ResponseType getResponseType() {
		return ResponseType.Login;
	}
	
	
}
